import { HTMLAttributes } from 'react'

type SvgWithColor = {
  className?: string
} & HTMLAttributes<SVGElement>

export const Check = ({ className, ...props }: SvgWithColor) => {
  return (
    <svg
      className={className}
      fill={'none'}
      height={18}
      viewBox={'0 0 18 18'}
      width={18}
      xmlns={'http://www.w3.org/2000/svg'}
      {...props}
    >
      <path
        className={className}
        d={
          'M16 0H2a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V2a2 2 0 00-2-2zM7 14L2 9l1.41-1.41L7 11.17l7.59-7.59L16 5l-9 9z'
        }
        fill={'currentColor'}
      />
    </svg>
  )
}
